package edu.hhu.innerac.sparkm.entry;

import java.io.Serializable;

public class BasePhone implements Serializable {

	/**
	 * 
	 */
//	private static final long serialVersionUID = 1L;
	
	public String mac;
	public long time;
	public float x;
	public float y;
	public boolean inner;
	public boolean outer;
	public boolean change;
	
	public BasePhone(){
		this.mac = null;
		this.time = 0;
		this.x = 0;
		this.y = 0;
		this.inner = false;
		this.outer = false;
		this.change = false;
	}
	
	public BasePhone(String mac,long time,boolean inner,boolean outer){
		this.x = 0;
		this.y = 0;
		this.inner = false;
		this.outer = false;
		this.mac = mac;
		this.time = time;
		this.inner = inner;
		this.outer = outer;
	}
	
	public String getMac() {
		return mac;
	}
	public void setMac(String mac) {
		this.mac = mac;
	}
	public long getTime() {
		return time;
	}
	public void setTime(long time) {
		this.time = time;
	}
	public float getX() {
		return x;
	}
	public void setX(float x) {
		this.x = x;
	}
	public float getY() {
		return y;
	}
	public void setY(float y) {
		this.y = y;
	}
	public boolean isInner() {
		return inner;
	}
	public void setInner(boolean inner) {
		this.inner = inner;
	}
	public boolean isOuter() {
		return outer;
	}
	public void setOuter(boolean outer) {
		this.outer = outer;
	}
	public boolean isChange() {
		return change;
	}
	public void setChange(boolean change) {
		this.change = change;
	}
	@Override
	public String toString() {
		return "BasePhone {mac:" + mac + ", time:" + time + ", x:" + x + ", y:"
				+ y + ", inner:" + inner + ", outer:" + outer + ", change:"
				+ change + "}";
	}
	
	
	

}
